/**
 *  Deleting elements from an array.
 *  Unfortunately the array in C is immutable, cannot be deleted or be inserted
 */
#include "C06.h"
#include <stdio.h>

int main(int argc, char* argv[])
{
    // drop 3 elements at begin
    short arX[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
    short arY[6];

    delete_elements_at_begin(arX, 9, arY, 6);

    for(int i=0;i<6;i++)
        printf("%d\x20", arY[i]);

    return 0;
}

// Question: how to drop some elements from tail?